#import "NSBundle+HFForm.h"
@implementation NSBundle (HFForm)
+ (instancetype)formBundle {
    static NSBundle *formBundle = nil;
    if (!formBundle) {
        formBundle = [NSBundle bundleWithPath:[[NSBundle mainBundle] pathForResource:@"FormIcon" ofType:@"bundle"]];
    }
    return formBundle;
}
+ (UIImage *)albumPlaceholderImage {
    NSString *pngName = [NSString stringWithFormat:@"form_album_placeholder@%ldx",(long)[UIScreen mainScreen].scale];
    return [UIImage imageWithContentsOfFile:[[self formBundle] pathForResource:pngName ofType:@"png"]];
}
+ (UIImage *)questionTipImage {
    NSString *pngName = [NSString stringWithFormat:@"form_question_blue@%ldx",(long)[UIScreen mainScreen].scale];
    return [UIImage imageWithContentsOfFile:[[self formBundle] pathForResource:pngName ofType:@"png"]];
}
+ (UIImage *)loadingCircleImage {
    NSString *pngName = [NSString stringWithFormat:@"icon_loading@%ldx",(long)[UIScreen mainScreen].scale];
    return [UIImage imageWithContentsOfFile:[[self formBundle] pathForResource:pngName ofType:@"png"]];
}
+ (UIImage *)loadAppleImage {
    NSString *pngName = [NSString stringWithFormat:@"apple@%ldx",(long)[UIScreen mainScreen].scale];
    return [UIImage imageWithContentsOfFile:[[self formBundle] pathForResource:pngName ofType:@"png"]];
}
@end
